//
//  RSCalculator.h
//  RSTools
//
//  Created by thinkjoy on 2017/10/20.
//  Copyright © 2017年 杜瑞胜. All rights reserved.
//  链式编程
//  http://blog.csdn.net/smallmk/article/details/51124574
#import <Foundation/Foundation.h>

@interface RSCalculator : NSObject

@property   (nonatomic,assign)  NSInteger  result;

///加
- (RSCalculator *(^)(NSInteger num))add;

///减
- (RSCalculator *(^)(NSInteger num))subtract;

///乘
- (RSCalculator *(^)(NSInteger num))multiply;

///除
- (RSCalculator *(^)(NSInteger num))divide;

- (RSCalculator *)end;

@end


